package com.gwtcx.sample.serendipity.server.guice;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.persist.jpa.JpaPersistModule;
import com.google.inject.servlet.GuiceServletContextListener;

public class SerendipityGuiceServletContextListener extends GuiceServletContextListener {

	@Override
	protected Injector getInjector() {
		return Guice.createInjector(new SerendipityServerModule(), new SerendipityServletModule(), new JpaPersistModule("HSQLDB-HOSTED-MODE-PU"));
	}

}
